#### 分割字符串

def split_string(string, char):
    return string.split(char)

def get_top_name(string):
    s = split_string(string, '.')[-6]
    return split_string(s, '/')[-1]

s = "/projects.SE024/cascade/workspace/xjsun/DDR_ASYNC/post.241211/dataout/DDR_ASYNC.strm.241211.lvs.v.gz"

print(get_top_name(s))